namespace ASPMVC_first_app.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class SeedUserRoles : DbMigration
    {
        public override void Up()
        {
            Sql(@"
                INSERT INTO [dbo].[AspNetUsers] ([Id], [Email], [EmailConfirmed], [PasswordHash], [SecurityStamp], [PhoneNumber], [PhoneNumberConfirmed], [TwoFactorEnabled], [LockoutEndDateUtc], [LockoutEnabled], [AccessFailedCount], [UserName]) VALUES (N'45a0eac4-b3f8-4a1e-bafc-cf53fd11abd0', N'admin@myapp.com', 0, N'AJGHm5YN67KKlejsj05kvSfOXWBWvA/GeN9gDhYF+Lb3sjujyFjeEYWYEtHrMkRUhw==', N'f3a57595-c8b9-4dd2-a352-b861fcc291c2', NULL, 0, 0, NULL, 1, 0, N'admin@myapp.com')
                INSERT INTO [dbo].[AspNetRoles] ([Id], [Name]) VALUES (N'd8c01e9a-71f1-4b3a-a25d-063b269a500d', N'SuperAdmin')
                INSERT INTO [dbo].[AspNetUserRoles] ([UserId], [RoleId]) VALUES (N'45a0eac4-b3f8-4a1e-bafc-cf53fd11abd0', N'd8c01e9a-71f1-4b3a-a25d-063b269a500d')
                
            ");
        }
        
        public override void Down()
        {
        }
    }
}
